<?= $this->Html->css('prettyPhoto'); ?> 
<?php echo $this->Html->script('jquery.prettyPhoto'); ?>
Galeria de Fotos
<div id="titulo_apresentacao">
    <?= $this->Html->image("seta.png", array('class' => 'seta')); ?><h1><?= $galeria['Galeria']['titulo']; ?></h1>
</div>
<br /><br /><br />

<?= $galeria['Galeria']['descricao']; ?>
<br /><br /><br />

<div class="bloco_galeria">
    <ul class="gallery clearfix">
    <?php
        if( $listas != '' ){
            foreach ($listas as $lista):
    ?>
        <li class="galeria_img_m"><a href="<?php echo $url.$lista; ?>" rel="prettyPhoto[gallery2]" title=""><img src="<?php echo $url.'mcith/mcith_'.$lista; ?>" alt="" /></a></li>
    <?php
            endforeach;
        }
    ?>
    </ul>
</div>

<?= $this->Html->link($this->Html->image("botao_voltar.png"), array('controller' => 'galerias', 'action' => 'index'), array('escape' => false));?>
<br /><br />

<?= $this->Html->image("bolotas_div.png"); ?>
<br /><br />

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
        $("area[rel^='prettyPhoto']").prettyPhoto();

        $(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'facebook',slideshow:3000, autoplay_slideshow: true});
        $(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});

        $("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
                custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
                changepicturecallback: function(){ initialize(); }
        });

        $("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
                custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
                changepicturecallback: function(){ _bsap.exec(); }
        });
});
</script>